package pl.edu.agh.soa.monitoring.cep;

import pl.edu.agh.soa.monitoring.router.IDynamicRouter;

public class EventInfoSubscriber {
	
	public IDynamicRouter dynamicRouter;
	
	public EventInfoSubscriber(IDynamicRouter dynamicRouter){
		System.out.println("EventInfoSunscriber created");
		this.dynamicRouter = dynamicRouter;
	}
	
    public void update(EventInfo eventInfo) {
    	System.out.println("Catched EventInfo");
        dynamicRouter.eventCatched(eventInfo.getStatementID(), eventInfo);
    }
}
